#ifndef __DEFAULT_PERSIST_STORAGE_H
#define __DEFAULT_PERSIST_STORAGE_H
#if WIN32
    #define YAML_CPP_STATIC_DEFINE
#endif
#include <string>
#include "yaml-cpp/yaml.h"
#include "PersistStorage.h"

class DefaultPersistStorage : public PersistStorage
{
protected:
    YAML::Node configObj;
public:
    DefaultPersistStorage(std::string name);
    virtual ~DefaultPersistStorage() = default;

    virtual std::string Read(std::string field);
    virtual void Write(std::string field, std::string value);
    virtual void Save();
    virtual void Load();
};

#endif